package com.zjuee.web.company.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zjuee.service.company.vo.CompanyLicenseVo;
import com.zjuee.base.model.common.company.CompanyLicenseGroup;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CompanyLicenseGroupMapper extends BaseMapper<CompanyLicenseGroup> {

    List<CompanyLicenseVo> getAllSDisposal(@Param("licenseId") Long licenseId,
                                           @Param("disposalType") String disposalType);

    List<CompanyLicenseVo> getMinuteInfo(@Param("licenseId") Long licenseId);

    /**
     * 根据条件查询分组的详情
     * @param companyLicenseGroup 查询条件
     * @return 分组信息
     */
    public List<CompanyLicenseGroup> findDetailByCondition(CompanyLicenseGroup companyLicenseGroup);


    /**
     * 根据处置方式和危废代码查询唯一Group分组
     *
     * @param bciId             企业ID
     * @param bclcScode         危废小代码
     * @param bclcBcode         危废大代码
     * @param bclgDisposalType  处置大类型
     * @param bclgDisposalStype 处置小类型
     * @return
     */
    public List<CompanyLicenseGroup> findByCodeAndTypeAndBciId(@Param("bciId") Long bciId, @Param("bclcScode") String bclcScode,
                                                               @Param("bclcBcode") String bclcBcode, @Param("bclgDisposalType") String bclgDisposalType,
                                                               @Param("bclgDisposalStype") String bclgDisposalStype);


}
